<%-- 
    Document   : TABELA_ASSOCIAR_ALUNO_CONFIRMA
    Created on : 23/03/2012, 02:22:40
    Author     : Henrique
--%>

<%@page import="br.catraca.modelo.Aluno"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link href="Estilos/EstiloDepartamentosTabelaAssociar.css" rel="stylesheet" type="text/css" />
    </head>
    <body topmargin="0" leftmargin="0">
        <form id="form1" name="form1" method="post" action="CatracaServlet">
            <% List<Aluno> aluno = (List<Aluno>) session.getAttribute("aluno_nulo");%>

            <div id="backUp">
                <input style="position: fixed; left: 0px; top: 10px; left: 30px;" 
                       type="image" name="enviar_bt" src="Estilos/Imagens/concluir_bt.png" value="Submit"/>
                <input type="hidden" name="chamarControlador" id ="chamarControlador" value ="AssociarAluno">
                <h2 style="float: right; font-family:Arial, Helvetica, sans-serif; font-size:12px;">
                    *Selecione as pessoas e clique em associar
                </h2>  
            </div>
            <br/>
            <br/>
            <br/>
             <table width="550" border="0" id="tabelaAssociarFunc" cellspacing="0">
                <tr class="cabecalhoAssociar">
                    <td width="100">Matrícula</td>
                    <td width="400">Nome</td>
                    <td width="50">Selec</td>
                </tr>
                 <% if (!aluno.get(0).getNome().equals("nulo")) {%>
                <% for (int index = 0; index < aluno.size(); index++) {%>
                <tr <%if (index % 2 != 0) {%> class="tblPrench" <%}%>>
                    <td><%= aluno.get(index).getMatricula()%></td>
                    <td><%= aluno.get(index).getNome()%></td>
                    <td><input type="checkbox" value="<%= aluno.get(index).getMatricula()%>" name="sel_aluno" id="sel_aluno" />
                        <label for="sel_aluno"></label></td>
                </tr>
                <% }%>
                <%} else {%>
                <tr>
                    
                </tr>
                <%}%>
            </table>
        </form>

        <script>
            alert("Associado com sucesso");
       
        </script>
    </body>
</html>
